<template>
  <div class="order-coffee">
    <div class="order-coffee-title">下单</div>
    <div class="order-coffee-detail">
      <div class="title">订单详情 (2)</div>
      <div class="tip">如果你不详细说明订单，你的饮料将正常调制。</div>
      <div class="list">
        <div class="item">
          <div class="item-img">
            <img src="@/assets/images/cupImg.png" alt="" />
          </div>
          <div class="item-content">
            <div class="item-name">香草拿铁</div>
            <div class="item-spec">去冰/5分甜</div>
          </div>
        </div>
      </div>
      <div class="addButton" @click="goMenu">继续添加</div>
    </div>
    <div class="order-coffee-footer">
      <div class="collection">
        <img src="@/assets/icons/love.svg" alt="" />
      </div>
      <div class="pay">立即购买</div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  setup() {
    const router = useRouter();
    const goMenu = () => {
      router.push("/ourMenu");
    };
    return {
      goMenu,
    };
  },
});
</script>


<style lang="less" scoped>
.order-coffee {
  min-height: 100vh;
  background: url("~@/assets/images/pureImg.jpg");
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 96px;
  padding-bottom: 236px;
  box-sizing: border-box;
  &-title {
    font-size: 46px;
    font-family: Helvetica;
    color: #ffffff;
    line-height: 62px;
  }
  &-detail {
    background: #ffffff;
    border-radius: 16px;
    padding: 38px 48px;
    margin-top: 56px;
    .title {
      font-size: 28px;
      font-family: Helvetica;
      color: #333333;
      line-height: 34px;
      margin-bottom: 48px;
    }
    .tip {
      height: 72px;
      font-size: 24px;
      font-family: Avenir-Book, Avenir;
      font-weight: normal;
      color: #38a971;
      line-height: 36px;
      padding: 24px 48px;
      background: rgba(56, 169, 113, 0.1);
      border-radius: 10px;
    }
    .list {
      margin-top: 48px;
      .item {
        margin-bottom: 48px;
        height: 112px;
        display: flex;
        &-img {
          height: 112px;
          text-align: center;
          img {
            height: 100%;
          }
        }
        &-content {
          margin-left: 32px;
        }
        &-name {
          font-size: 32px;
          font-family: Helvetica;
          color: #333333;
          line-height: 38px;
          margin-top: 20px;
        }
        &-spec {
          font-size: 24px;
          font-family: Helvetica;
          color: #737373;
          line-height: 28px;
          margin-top: 12px;
        }
      }
    }
    .addButton {
      height: 96px;
      background: #fff6f0;
      border-radius: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-family: Helvetica;
      color: #472813;
    }
  }

  &-footer {
    height: 216px;
    background: #ffffff;
    box-shadow: 0px -16px 68px 0px rgba(53, 64, 90, 0.09);
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 0 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .collection {
      width: 132px;
      height: 96px;
      background: #ffffff;
      border-radius: 48px;
      border: 2px solid #dee2ee;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: 35px;
      }
    }
    .pay {
      width: 486px;
      height: 96px;
      background: #f6a44e;
      border-radius: 48px;
      font-size: 28px;
      font-family: Helvetica;
      color: #ffffff;
      line-height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
</style>